﻿<%@ Page Title="部门信息维护" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="ListDept.aspx.cs" Inherits="WhereIam.Moduels.ListDept" %>
<%@ Register TagPrefix="dx" Namespace="DevExpress.Web.ASPxGridView" Assembly="DevExpress.Web.v14.1, Version=14.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" %>
<%@ Register assembly="DevExpress.Web.v14.1, Version=14.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <h2>部门信息维护</h2>
    <hr/>
    <div class="col-lg-12">
        <dx:ASPxGridView ID="ASPxGridView1" CssClass="table-hover col-lg-12" runat="server" KeyFieldName="IdDept" AutoGenerateColumns="False" DataSourceID="ObjectDataSource1" Theme="Metropolis" OnInitNewRow="ASPxGridView1_InitNewRow" OnRowInserting="ASPxGridView1_RowInserting">

            <Columns>
                <dx:GridViewCommandColumn ShowDeleteButton="True" ShowEditButton="True" ShowNewButtonInHeader="True" VisibleIndex="0">
                </dx:GridViewCommandColumn>
                <dx:GridViewDataTextColumn FieldName="IdDept" Visible="False" VisibleIndex="1">
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn FieldName="DeptName" VisibleIndex="2">
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn FieldName="DeptDiscription" VisibleIndex="3">
                </dx:GridViewDataTextColumn>
            </Columns>

            <SettingsBehavior ConfirmDelete="True"/>

        </dx:ASPxGridView>
        <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" DataObjectTypeName="WhereIam.Entities.Dept" DeleteMethod="Delete" InsertMethod="Insert" SelectMethod="GetAll" TypeName="WhereIam.Entities.DeptBll" UpdateMethod="Update"></asp:ObjectDataSource>
    </div>
</asp:Content>